﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;

namespace Alos.IRepository
{
    public interface IReTeachRecordRepository : IBaseRepository<ReTeachRecord>
    {
        /// <summary>
        /// 添加教师上课记录
        /// </summary>
        int CreateReTeachRecord(ReTeachRecord ReTeachRecord);
        /// <summary>
        /// 修改教师上课记录
        /// </summary>
        int UpdateReTeachRecord(int id);
        /// <summary>
        /// 检查上一堂课是否正常结束
        /// </summary>
        ReTeachRecord getReTeachRecord(int id, int ClassId);

        /// <summary>
        /// 获取最近一条上课记录
        /// </summary>
        /// <returns></returns>
        ReTeachRecord GetReTeachRecord();
        /// <summary>
        /// 点击下课
        /// </summary>
        IEnumerable<dynamic> EndReTeachRecord(int TeacherID,int LessionID);
        /// <summary>
        /// 学生登录后  等待老师准备上课
        /// </summary>
        /// <param name="classId">班级编号</param>
        /// <returns></returns>
        dynamic isBeginTeach(int classId);
        int EndPreTeachRecord(int ID);
    }
}
